<%-- 
   fieldValidatorExample.jsp
   
   @author tm_jee
   @version $Date: 2006-09-06 00:07:10 -0400 (Wed, 06 Sep 2006) $ $Id: fieldValidatorsExample.jsp 440609 2006-09-06 04:07:10Z wsmoak $
--%>
<?xml version="1.0" encoding="UTF-8" ?>
<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@taglib prefix="s" uri="/struts-tags"%>

<html>
<head>
<title>Showcase - Validation - Field Validators Example</title>
<s:url id="siteCss" includeContext="true"
	value="/validationExamplesStyles.css" />
<s:head theme="xhtml" />
</head>
<body>

<!-- START SNIPPET: fieldValidatorsExample -->

<h3>所有字段错误显示在这里</h3>
<s:fielderror />
<hr />

<h3>字段错误为'Required String Validator Field' 显示在这里</h3>
<s:fielderror>
	<s:param>requiredStringValidatorField</s:param>
</s:fielderror>
<hr />

<h3>字段错误为 'String Length Validator Field' 显示在这里</h3>
<s:fielderror>
	<s:param>stringLengthValidatorField</s:param>
</s:fielderror>
<hr />

<s:form action="submitFieldValidatorsExamples" namespace="/"
	method="POST" theme="xhtml">
	<s:textfield key="label.requiredValidatorField" name="requiredValidatorField" />
	<s:textfield label="必填字符串字段" name="requiredStringValidatorField" />
	<s:textfield label="整型数字段" name="integerValidatorField" />
	<s:textfield label="日期字段" name="dateValidatorField" />
	<s:textfield label="邮件字段" name="emailValidatorField" />
	<s:textfield label="URL字段" name="urlValidatorField" />
	<s:textfield label="字符串长度校验字段" name="stringLengthValidatorField" />
	<s:textfield label="正则表达式校验字段" name="regexValidatorField" />
	<s:textfield label="字段表达式校验字段" name="fieldExpressionValidatorField" />
	<s:submit  value="提交" />
</s:form>

</body>
</html>
